<?php

namespace app\common\model\settings;

use app\common\library\easywechat\wx\WxCustomer as WxCustomerModel;
use app\common\library\easywechat\AppWx;
use app\common\exception\BaseException;

/**
 * 系统设置模型
 */
class WxCustomer
{


    /**
     * 获取
     */
    public function getCustomers()
    {
        $app = AppWx::getApp();
        $model = new WxCustomerModel($app);
        if ($kf = $model->getCustomerLink()) {
            return $kf;
        } else {
            throw new BaseException($model->getError());
        }
    }

}
